﻿//----------------------------------------------------------------------------------------------------
// A NodeType holds the data representing differnet types of nodes, i.e. gamepiece.
//----------------------------------------------------------------------------------------------------

package HG.GameDataTypes
{
	public class NodeType
	{
		var m_type:String;
		var m_actions:Array;
		
		//----------------------------------------------------------------------------------------------------
		public function NodeType(typeString:String)
		{
			m_type = typeString;
			m_actions = new Array();
		}
	
		//----------------------------------------------------------------------------------------------------
		public function AddActionType(type:Number)
		{
			if (m_actions.indexOf(type) == -1)
				m_actions.push(type);
		}
		
		//----------------------------------------------------------------------------------------------------
		public function GetActionTypes():Array
		{
			return m_actions;
		}
		//----------------------------------------------------------------------------------------------------
	}
}